<?php
    session_start();
?>

<h1>testing</h1>
<ol>
    <li> name
    <li> email
    <li> phone 
    <li> imgae tile
    <li> file upload
</ol>

<form action=sample.php method=post enctype="multipart/form-data">
write your name :
    <input  name=uname><br/><br/>
        E-mail:
    <input  name=email><br/><br/>
        Phone no:
    <input  name=phone><br/><br/>
        Image title:
    <input  name=img_title><br/><br/>
    Filename:
    <input type="file" name="file" id="file" /><br/><br/>
    
    <input type=submit>

</form>
<?php
if(empty($_SESSION['uname'])){
    $_SESSION['uname'] = $_REQUEST['uname'];
    $_SESSION['email'] = $_REQUEST['email'];
    $_SESSION['phone'] = $_REQUEST['phone'];
    $_SESSION['img_title'] = $_REQUEST['img_title'];
    $_SESSION['file'] = $_REQUEST['file'];
}
      
      
echo $_SESSION['uname'], '<br/>', $_SESSION['email'], '<br/>', $_SESSION['phone'], '<br/>', $_SESSION['img_title'], '<br/>', $_SESSION['file'];
//echo $_REQUEST['uname'];
echo '<br/>';
//print_r($_SERVER['REMOTE_ADDR']);
